import request from '@/utils/request'


export function login (data) {
    return request({
        url: '/login',
        method: 'post',
        data
    })
}

export function getInfo (params) {
    return request({
        url: '/api/user/info',
        method: 'get',
        params
    })
}

export function getMenu (params) {
    return request({
        url: '/api/user/menu',
        method: 'get',
        params
    })
}

export function getAllUser (params) {
    return request({
        url: '/api/user/get',
        method: 'get',
        params
    })
}

export function modUser(data) {
    return request({
        url:'/api/user/mod',
        method:'post',
        data
    })
}

//刷新用户列表缓存
export function refreshCacheUsers(data){
    return request({
        url:'/api/user/refreshCacheUsers',
        method:'post',
        data
    })
}
